<template>
	<view style="padding: 20rpx;">
		<view class="" style="font-size: 34rpx;">
			通知消息
		</view>
		<view class="" style="margin-top:30rpx;color:#636363">
			{{datalist.createtime}}
		</view>
		<view class="" style="margin-top:30rpx">
			{{datalist.content}}
		</view>
	</view>
</template>

<script>
	import { Sysmsg } from '../../model/sysmsg-model.js';
	var sysmsg = new Sysmsg();
	export default {
		data() {
			return {
				id:'',
				datalist:{}
			}
		},
		onLoad(option) {
			this.id = option.id
			this.getdata()
			console.log(option)
		},
		methods: {
			getdata(){
				var that = this;
				uni.setNavigationBarTitle({
				    title: '通知消息'
				});
				var params = {
					id:that.id
				};
				sysmsg.GetsysmsgDetail((data) => {
					console.log(data)
				    that.setData({
				        datalist: data.data
				    });
				    uni.hideNavigationBarLoading(); //完成停止加载
				    uni.stopPullDownRefresh();
				}, params);
			}
		}
	}
</script>

<style>
page{
	background-color: #fff;
}
</style>
